package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"question/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/ask", &controllers.QuestionController{}, "post:Ask")
	beego.Router("/upload", &controllers.QuestionController{}, "post:Upload")
	beego.Router("/list", &controllers.QuestionController{}, "get:List")
	beego.Router("/info", &controllers.QuestionController{}, "get:Info")
	beego.Router("/questionType", &controllers.QuestionController{}, "get:QuestionType")

}
